
package com.qianxun.module.datasource1.admin.mapper;

import com.qianxun.module.datasource1.admin.entity.SysUserFunctionRoleRelation;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author: admin
* @date: 2019-11-28
* @version: 1.0.0
*/
public interface SysUserFunctionRoleRelationMapper extends BaseMapper<SysUserFunctionRoleRelation> {

    /**
     * 删除指定用户uuid的所有数据
     * @param userUuid 用户uuid标识
     */
    void deleteByUserUuid(@Param(value = "userUuid") String userUuid);

    /**
     * 查询指定用户uuid的所有功能角色的id
     * @param userUuid 用户uuid标识
     * @return
     */
    List<Integer> selectFunctionRoleIdByUserUuid(@Param(value = "userUuid") String userUuid);
}
